from collections import namedtuple

Person = namedtuple('Person', 'name age')

bob = Person(name='Bob', age=30)
print('\nBefore: ', bob)
bob2 = bob._replace(name='Robert')
print('\nAfter: ', bob2)
print('Same?: ', bob is bob2)
